home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 26 June 1998
- // Author: mgr
- //
- //
- // Procedure Name:
- // ModEditCurvesMenu
- //
- // Description:
- // Create the MODELLING->Edit Curves menu
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
- proc modEditCurvesMenuLabel( int $hasSurfaces )
- {
- if( $hasSurfaces ) {
- if( `optionVar -q modelWithToolDuplCurve` ) {
- menuItem -e
- -l "Duplicate Surface Curves Tool"
- -annotation ("Duplicate Surface Curves Tool" +
- ": Select surface curve(s)")
- duplicateCurveItem ;
- menuItem -e
- -annotation ("Duplicate Curves Tool Box")
- -l ("Duplicate Curves Tool Option Box")
- duplicateCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Duplicate Surface Curves"
- -annotation ("Duplicate Surface Curves" +
- ": Select surface curve(s)")
- duplicateCurveItem ;
- menuItem -e
- -annotation ("Duplicate Curves Box")
- -l ("Duplicate Curves Option Box")
- duplicateCurveDialogItem;
- }
- }
-
- if( `optionVar -q modelWithToolAttachCurve` ) {
- menuItem -e
- -l "Attach Curves Tool"
- -annotation ("Attach Curves Tool: Select two curves")
- attachCrvItem;
- menuItem -e
- -annotation ("Attach Curves Tool Option Box")
- -l ("Attach Curves Tool Option Box")
- attachCrvDialog;
- }
- else {
- menuItem -e
- -l "Attach Curves"
- -annotation ("Attach Curves: Select two curves")
- attachCrvItem;
- menuItem -e
- -annotation ("Attach Curves Option Box")
- -l ("Attach Curves Option Box")
- attachCrvDialog;
- }
-
- if( `optionVar -q modelWithToolAlignCurve` ) {
- menuItem -e
- -l "Align Curves Tool"
- -annotation "Align Curves Tool: Select two curves"
- alignItem;
- menuItem -e
- -annotation "Align Curves Tool Option Box"
- -l "Align Curves Tool Option Box"
- alignDialogItem;
- }
- else {
- menuItem -e
- -l "Align Curves"
- -annotation "Align Curves: Select two curves"
- alignItem;
- menuItem -e
- -annotation "Align Curves Option Box"
- -l "Align Curves Option Box"
- alignDialogItem;
- }
-
- if( `optionVar -q modelWithToolDetachCurve` ) {
- menuItem -e
- -l "Detach Curves Tool"
- -annotation ("Detach Curves Tool" +
- ": Select curve parameter point(s)")
- detachItem;
- menuItem -e
- -annotation ("Detach Curves Tool Option Box")
- -l ("Detach Curves Tool Option Box")
- detachDialog;
- }
- else {
- menuItem -e
- -l "Detach Curves"
- -annotation ("Detach Curves" +
- ": Select curve parameter point(s)")
- detachItem;
- menuItem -e
- -annotation ("Detach Curves Option Box")
- -l ("Detach Curves Option Box")
- detachDialog;
- }
-
- if( `optionVar -q modelWithToolInsertCurve` ) {
- menuItem -e
- -l "Insert Knot Tool"
- -annotation ("Insert Knot Tool" +
- ": Select curve parameter point(s)")
- insertItem;
- menuItem -e
- -annotation ("Insert Knot Tool Option Box")
- -l ("Insert Knot Tool Option Box")
- insertDialog;
- }
- else {
- menuItem -e
- -l "Insert Knot"
- -annotation ("Insert Knot" +
- ": Select curve parameter point(s)")
- insertItem;
- menuItem -e
- -annotation ("Insert Knot Option Box")
- -l ("Insert Knot Option Box")
- insertDialog;
- }
-
- if( `optionVar -q modelWithToolFilletCurve` ) {
- menuItem -e
- -label "Curve Fillet Tool"
- -annotation "Curve Fillet Tool: Select curve parameter points"
- crvFilletItem;
- menuItem -e
- -annotation "Curve Fillet Tool Option Box"
- -l "Curve Fillet Tool Option Box"
- crvFilletDialogItem;
- }
- else {
- menuItem -e
- -label "Curve Fillet"
- -annotation "Curve Fillet: Select curve parameter points"
- crvFilletItem;
- menuItem -e
- -annotation "Curve Fillet Option Box"
- -l "Curve Fillet Option Box"
- crvFilletDialogItem;
- }
-
- if( `optionVar -q modelWithToolOffsetCurve` ) {
- menuItem -e
- -l "Offset Curve Tool"
- -annotation ("Offset Curve Tool: Select a curve, " +
- "curve on surface, isoparm or trim edge")
- offsetCrvItem;
-
- menuItem -e
- -annotation "Offset Curve Tool Option Box"
- -l "Offset Curve Tool Option Box"
- offsetCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Offset Curve"
- -annotation ("Offset Curve: Select a curve, " +
- "curve on surface, isoparm or trim edge")
- offsetCrvItem;
-
- menuItem -e
- -annotation "Offset Curve Option Box"
- -l "Offset Curve Option Box"
- offsetCurveDialogItem;
- }
-
- if( $hasSurfaces ) {
- if( `optionVar -q modelWithToolOffsetCoS` ) {
- menuItem -e
- -l "Offset Curve On Surface Tool"
- -annotation ("Offset Curve On Surface Tool: " +
- "Select a curve on surface, isoparm or trim edge")
- offsetCosItem;
- menuItem -e
- -annotation "Offset Curve On Surface Tool Option Box"
- -l "Offset Curve On Surface Tool Option Box"
- offsetCosDialogItem;
- }
- else {
- menuItem -e
- -l "Offset Curve On Surface"
- -annotation ("Offset Curve On Surface: " +
- "Select a curve on surface, isoparm or trim edge")
- offsetCosItem;
- menuItem -e
- -annotation "Offset Curve On Surface Option Box"
- -l "Offset Curve On Surface Option Box"
- offsetCosDialogItem;
- }
- }
-
- if( `optionVar -q modelWithToolExtendCurve` ) {
- menuItem -e
- -l "Extend Curve Tool"
- -annotation ("Extend Curve Tool: Select curve(s) " +
- "or curve on surface(s)")
- extendCurveItem;
- menuItem -e
- -annotation "Extend Curve Tool Option Box"
- -l "Extend Curve Tool Option Box"
- extendCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Extend Curve"
- -annotation "Extend Curve: Select curve(s) or curve on surface(s)"
- extendCurveItem;
- menuItem -e
- -annotation "Extend Curve Option Box"
- -l "Extend Curve Option Box"
- extendCurveDialogItem;
- }
-
- if( $hasSurfaces ) {
- if( `optionVar -q modelWithToolExtendCosCurve` ) {
- menuItem -e
- -l "Extend Curve On Surface Tool"
- -annotation ("Extend Curve On Surface Tool: " +
- "Select curve(s) on surface")
- extendCosCurveItem;
- menuItem -e
- -annotation "Extend Curve On Surface Tool Option Box"
- -l "Extend Curve On Surface Tool Option Box"
- extendCosCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Extend Curve On Surface"
- -annotation ("Extend Curve On Surface: Select " +
- "curve(s) on surface")
- extendCosCurveItem;
- menuItem -e
- -annotation "Extend Curve On Surface Option Box"
- -l "Extend Curve On Surface Option Box"
- extendCosCurveDialogItem;
- }
- }
-
- if( `optionVar -q modelWithToolCloseCurve` ) {
- menuItem -e
- -l "Open/Close Curves Tool"
- -annotation "Open/Close Curves Tool: Select curve(s)"
- closeItem;
- menuItem -e
- -annotation "Open/Close Curves Tool Option Box"
- -l "Open/Close Curves Tool Option Box"
- closeDialogItem;
- }
- else {
- menuItem -e
- -l "Open/Close Curves"
- -annotation "Open/Close Curves: Select curve(s)"
- closeItem;
- menuItem -e
- -annotation "Open/Close Curves Option Box"
- -l "Open/Close Curves Option Box"
- closeDialogItem;
- }
-
- if( `optionVar -q modelWithToolReverseCurve` ) {
- menuItem -e
- -l "Reverse Curve Direction Tool"
- -annotation "Reverse Curves Tool: Select curve(s)"
- reverseItem;
-
- menuItem -e
- -annotation "Reverse Curves Tool Option Box"
- -l "Reverse Curves Tool Option Box"
- reverseDialogItem;
- }
- else {
- menuItem -e
- -l "Reverse Curve Direction"
- -annotation "Reverse Curves: Select curve(s)"
- reverseItem;
-
- menuItem -e
- -annotation "Reverse Curves Option Box"
- -l "Reverse Curves Option Box"
- reverseDialogItem;
- }
-
- if( `optionVar -q modelWithToolRebuildCurve` ) {
- menuItem -e
- -l "Rebuild Curve Tool"
- -annotation ("Rebuild Curve Tool: Select curve(s) " +
- "or curve on surface(s)")
- rebuildCrvItem;
- menuItem -e
- -annotation "Rebuild Curve Tool Option Box"
- -l "Rebuild Curve Tool Option Box"
- rebuildCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Rebuild Curve"
- -annotation "Rebuild Curve: Select curve(s) or curve on surface(s)"
- rebuildCrvItem;
- menuItem -e
- -annotation "Rebuild Curve Option Box"
- -l "Rebuild Curve Option Box"
- rebuildCurveDialogItem;
- }
-
- if( `optionVar -q modelWithToolCutCurve` ) {
- menuItem -e
- -l "Cut Curve Tool"
- -annotation "Cut Curve Tool: Cuts two curves where they intersect"
- cutCurvesItem;
- menuItem -e
- -annotation "Cut Curve Tool Option Box"
- -l "Cut Curve Tool Option Box"
- cutCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Cut Curve"
- -annotation "Cut Curve: Cuts two curves where they intersect"
- cutCurvesItem;
- menuItem -e
- -annotation "Cut Curve Option Box"
- -l "Cut Curve Option Box"
- cutCurveDialogItem;
- }
-
- if( `optionVar -q modelWithToolIntersectCurve` ) {
- menuItem -e
- -l "Intersect Curves Tool"
- -annotation ("Intersect Curves Tool: Select two or more " +
- "curves - the last curve intersects all " +
- "the other ones")
- intersectCurvesItem;
- menuItem -e
- -annotation "Intersect Curves Tool Option Box"
- -l "Intersect Curves Tool Option Box"
- intersectCurveDialogItem;
- }
- else {
- menuItem -e
- -l "Intersect Curves"
- -annotation ("Intersect Curves: Select two or more " +
- "curves - the last curve intersects all " +
- "the other ones")
- intersectCurvesItem;
- menuItem -e
- -annotation "Intersect Curves Option Box"
- -l "Intersect Curves Option Box"
- intersectCurveDialogItem;
- }
-
- if( `optionVar -q modelWithToolFitBspline` ) {
- menuItem -e
- -l "Fit B-spline Tool"
- -annotation ("Fit B-spline Tool: Select curve(s), " +
- "isoparm(s) or trim edge(s)")
- fitBsplineItem;
-
- menuItem -e
- -annotation "Fit B-spline Tool Option Box"
- -l "Fit B-spline Tool Option Box"
- fitBsplineDialogItem;
- }
- else {
- menuItem -e
- -l "Fit B-spline"
- -annotation ("Fit B-spline: Select curve(s), " +
- "isoparm(s) or trim edge(s)")
- fitBsplineItem;
-
- menuItem -e
- -annotation "Fit B-spline Option Box"
- -l "Fit B-spline Option Box"
- fitBsplineDialogItem;
- }
-
- if( `optionVar -q modelWithToolSmoothCurve` ) {
- menuItem -e
- -l "Smooth Curve Tool"
- -annotation "Smooth Curve Tool: Select control vertices on curve"
- smoothItem;
- menuItem -e
- -annotation "Smooth Curve Tool Option Box"
- -l "Smooth Curve Tool Option Box"
- smoothDialogItem;
- }
- else {
- menuItem -e
- -l "Smooth Curve"
- -annotation "Smooth Curve: Select control vertices on curve"
- smoothItem;
- menuItem -e
- -annotation "Smooth Curve Option Box"
- -l "Smooth Curve Option Box"
- smoothDialogItem;
- }
-
- if( `optionVar -q modelWithToolCvHardness` ) {
- menuItem -e
- -l "CV Hardness Tool"
- -annotation "CV Hardness Tool: Select control vertices on curve"
- hardenItem;
- menuItem -e
- -annotation "CV Hardness Tool Option Box"
- -l "CV Hardness Tool Option Box"
- hardenDialogItem;
- }
- else {
- menuItem -e
- -l "CV Hardness"
- -annotation "CV Hardness: Select control vertices on curve"
- hardenItem;
- menuItem -e
- -annotation "CV Hardness Option Box"
- -l "CV Hardness Option Box"
- hardenDialogItem;
- }
-
- if( `optionVar -q modelWithToolProjectTangent` ) {
- menuItem -e
- -l "Project Tangent Tool"
- -annotation ("Project Tangent Tool: Select three curves " +
- "OR any number of curves and one surface")
- projectTangentItem;
- menuItem -e
- -annotation "Project Tangent Tool Option Box"
- -l "Project Tangent Tool Option Box"
- projectTangentDialogItem;
- }
- else {
- menuItem -e
- -l "Project Tangent"
- -annotation ("Project Tangent: Select three curves " +
- "OR any number of curves and one surface")
- projectTangentItem;
- menuItem -e
- -annotation "Project Tangent Option Box"
- -l "Project Tangent Option Box"
- projectTangentDialogItem;
- }
- }
-
- global proc ModEditCurvesMenu( string $parent )
- {
- // If this ever changes to true, we have to make sure
- // we don't dim the tools. So, don't just change the
- // value. Milan S.
- int $dimWhenNoSelect = 0;
-
- int $hasSurfaces = `isTrue SurfaceUIExists`;
-
- setParent -m $parent;
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just relabel and return
- //
- modEditCurvesMenuLabel( $hasSurfaces );
- return;
- }
-
-
- // Duplicate Surface Curves.
- //
-
- if( $hasSurfaces ) {
- menuItem
- -c "DuplicateCurve"
- -dmc "duplicateCurveToolScript 2"
- -i "duplicateCurve.xpm"
- duplicateCurveItem ;
- menuItem -optionBox true
- -i "duplicateCurve.xpm"
- -c "DuplicateCurveOptions"
- duplicateCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|duplicateCurveItem");
-
- menuItem -d true ;
- }
-
- // Attach, Detach, Align, Open(close)
- //
-
- menuItem
- -c "AttachCurve"
- -dmc "attachCrvToolScript 2"
- -i "attachCurves.xpm"
- attachCrvItem;
- menuItem -optionBox true
- -i "attachCurves.xpm"
- -c "AttachCurveOptions"
- attachCrvDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|attachCrvItem");
-
- menuItem
- -c "DetachCurve"
- -dmc "detachCurveToolScript 2"
- -i "detachCurve.xpm"
- detachItem;
- menuItem -optionBox true -i "detachCurve.xpm"
- -c "DetachCurveOptions"
- detachDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|detachItem");
-
- menuItem -l "Align Curves"
- -c "AlignCurve"
- -dmc "alignCurveToolScript 2"
- -i "alignCurve.xpm"
- alignItem;
- menuItem -optionBox true
- -i "alignCurve.xpm"
- -c "AlignCurveOptions"
- alignDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|alignItem");
-
- menuItem -l "Open/Close Curves"
- -c "OpenCloseCurve"
- -dmc "closeCurveToolScript 2"
- -i "closeGeom.xpm"
- closeItem;
- menuItem -optionBox true -i "closeGeom.xpm"
- -c "OpenCloseCurveOptions"
- closeDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|closeItem");
-
- // move seam mel script
- //
- menuItem -l "Move Seam"
- -annotation "Move seam on a periodic curve: Select curve point for new seam location"
- // -image "" // Needs to have an icon created for it
- -c "moveNurbsCurveSeam" moveCurveSeamItem;
-
- menuItem -d true ;
-
- // cut + intersect + curve fillet.
- //
-
- menuItem
- -c "CutCurve"
- -dmc "cutCurveToolScript 2"
- -i "cutCurves.xpm"
- cutCurvesItem;
- menuItem -optionBox true -i "cutCurves.xpm"
- -c "CutCurveOptions"
- cutCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|cutCurvesItem");
-
- menuItem
- -c "IntersectCurve"
- -dmc "intersectCurveToolScript 2"
- -i "intersectCurves.xpm"
- intersectCurvesItem;
- menuItem -optionBox true -i "intersectCurves.xpm"
- -c "IntersectCurveOptions"
- intersectCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|intersectCurvesItem");
-
- menuItem
- -c "CurveFillet"
- -dmc "filletCurveToolScript 2"
- -i "fillet.xpm"
- crvFilletItem;
- menuItem -optionBox true -i "fillet.xpm"
- -c "CurveFilletOptions"
- crvFilletDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|crvFilletItem");
-
- menuItem -d true ;
-
- // Insert + Extend + Offset + reverse.
- //
- menuItem
- -c "InsertKnot"
- -dmc "insertCurveToolScript 2"
- -i "insertKnot.xpm"
- insertItem;
- menuItem -optionBox true -i "insertKnot.xpm"
- -c "InsertKnotOptions"
- insertDialog;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|insertItem");
-
- if( $hasSurfaces ) {
- menuItem -l "Extend " -sm 1 -to 1 -aob true;
- }
- menuItem
- -c "ExtendCurve"
- -dmc "extendCurveToolScript 2"
- -i "extend.xpm"
- extendCurveItem;
- menuItem -optionBox true -i "extend.xpm"
- -c "ExtendCurveOptions"
- extendCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|extendCurveItem");
-
- if( $hasSurfaces ) {
- menuItem -l "Extend Curve On Surface"
- -c "ExtendCurveOnSurface"
- -dmc "extendCosCurveToolScript 2"
- -i "extendCos.xpm"
- extendCosCurveItem;
- menuItem -optionBox true -i "extendCos.xpm"
- -c "ExtendCurveOnSurfaceOptions"
- extendCosCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|extendCosCurveItem");
- setParent -m .. ;
- }
-
- if( $hasSurfaces ) {
- menuItem -l "Offset" -sm 1 -to 1 -aob true;
- }
- menuItem
- -c "OffsetCurve"
- -dmc "offsetCurveToolScript 2"
- -i "offsetCurve.xpm"
- offsetCrvItem;
-
- menuItem -optionBox true -i "offsetCurve.xpm"
- -c "OffsetCurveOptions"
- offsetCurveDialogItem;
-
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|offsetCrvItem");
-
- if( $hasSurfaces ) {
- menuItem
- -c "OffsetCurveOnSurface"
- -dmc "offsetCosToolScript 2"
- -i "offsetCos.xpm"
- offsetCosItem;
- menuItem -optionBox true -i "offsetCos.xpm"
- -c "OffsetCurveOnSurfaceOptions"
- offsetCosDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|offsetCosItem");
- setParent -m ..;
- }
-
- menuItem
- -c "ReverseCurve"
- -dmc "reverseCurveToolScript 2"
- -i "reverse.xpm"
- reverseItem;
-
- menuItem -optionBox true -i "reverse.xpm"
- -c "ReverseCurveOptions"
- reverseDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|reverseItem");
- menuItem -d true ;
-
-
- // rebuild curve
- //
- menuItem
- -c "RebuildCurve"
- -dmc "rebuildCurveToolScript 2"
- -i "rebuildCurve.xpm"
- rebuildCrvItem;
- menuItem -optionBox true -i "rebuildCurve.xpm"
- -c "RebuildCurveOptions"
- rebuildCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|rebuildCrvItem");
-
- menuItem -d true ;
-
- // fit B-spline + smooth + cv Hardness.
- //
-
- menuItem
- -c "FitBSpline"
- -dmc "fitBsplineToolScript 2"
- -i "fitBSpline.xpm"
- fitBsplineItem;
-
- menuItem -optionBox true -i "fitBSpline.xpm"
- -c "FitBSplineOptions"
- fitBsplineDialogItem;
-
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|fitBsplineItem");
-
-
- menuItem
- -c "SmoothCurve"
- -dmc "smoothCurveToolScript 2"
- -i "smoothCurve.xpm"
- smoothItem;
- menuItem -optionBox true
- -c "SmoothCurveOptions"
- -i "smoothCurve.xpm"
- smoothDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|smoothItem");
-
- menuItem
- -c "CVHardness"
- -dmc "cvHardnessToolScript 2"
- -i "cvHardness.xpm"
- hardenItem;
- menuItem -optionBox true
- -c "CVHardnessOptions"
- -i "cvHardness.xpm"
- hardenDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|hardenItem");
-
- menuItem -d true ;
-
- // add points + edit curve.
- //
- menuItem -l "Add Points Tool"
- -annotation "Add Points Tool: Select the curve to add points"
- -image "curveAddPt.xpm"
- -c "AddPointsTool" crvAppendItem;
- menuItem -l "Curve Editing Tool"
- -annotation "Curve Editing Tool: Select a curve or curve on surface"
- -image "curveEditor.xpm"
- -c "CurveEditTool" crvEditorItem;
-
- menuItem -d true;
-
- // project Tangent
- //
- menuItem
- -c "ProjectTangent"
- -dmc "projectTangentToolScript 2"
- -i "projectTangent.xpm"
- projectTangentItem;
- menuItem -optionBox true
- -i "projectTangent.xpm"
- -c "ProjectTangentOptions"
- projectTangentDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|projectTangentItem");
-
- modEditCurvesMenuLabel( $hasSurfaces );
- }
-
-